<?php
require_once 'Vega/Widget.php';
class MenubarWidget extends Vega_Widget {
	public function execute() {
        $menuDao = Vega_Dao::factory('Mobitv_Admin_Menu');
        $id = isset($this->_params['group_id']) ? $this->_params['group_id'] : -1;
        $arrMenu = $menuDao->loadMenu($id);
        $this->_view->assign('menus', $arrMenu);
        $this->_view->assign('_module', $this->_params['_module']);
        $this->_view->assign('_action', $this->_params['_action']);
    }
}